package com.example.demo.entity;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import lombok.Data;

@Data
@TableName("user")
public class User {
    @TableId(type = IdType.AUTO)
    private Long id;

    @TableField(value = "phone")
    private String phone;

    @TableField(value = "name")
    private String name;

    @TableField(value = "bank_name")
    private String bankName;

    @TableField(value = "create_time")
    private Date createTime;

    @TableField(value = "grade")
    private int grade;

    @TableField(value = "age")
    private int age;

    public User(){};

    public User(String phone, String name, String bankName) {
        this.phone = phone;
        this.name = name;
        this.bankName = bankName;
    }

    public User(Long id, String phone, int grade, int age) {
        this.id = id;
        this.phone = phone;
        this.grade = grade;
        this.age = age;
    }


}
